package com.example.demo.mapper;

import com.example.demo.bean.Caculater;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CaculateMapper {


    int addBuySum(Caculater caculater);

    float queryMoneyOfYear(String year);

    List<Caculater> queryMoneyOfMonth(String year);

    float caculateSumMoney();

    List<Caculater> queryEveryTimesOfMonth(Integer year,Integer month);

    float queryThisWeekBuySum(String nowTime, String thisWeekStartTime);

    List<String> selectUnselectDrinkName();

    float queryThisMonthCost(String date);
}
